package com.openbravo.pos.payment;

import java.awt.Component;
import java.awt.ComponentOrientation;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.Window;

public class JPaymentSelectRefund extends JPaymentSelect
{
  protected JPaymentSelectRefund(Frame paramFrame, boolean paramBoolean, ComponentOrientation paramComponentOrientation)
  {
    super(paramFrame, paramBoolean, paramComponentOrientation);
  }

  protected JPaymentSelectRefund(Dialog paramDialog, boolean paramBoolean, ComponentOrientation paramComponentOrientation)
  {
    super(paramDialog, paramBoolean, paramComponentOrientation);
  }

  public static JPaymentSelect getDialog(Component paramComponent)
  {
    Window localWindow = getWindow(paramComponent);
    if ((localWindow instanceof Frame))
      return new JPaymentSelectRefund((Frame)localWindow, true, paramComponent.getComponentOrientation());
    return new JPaymentSelectRefund((Dialog)localWindow, true, paramComponent.getComponentOrientation());
  }

  protected void addTabs()
  {
    addTabPayment(new JPaymentSelect.JPaymentCashRefundCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentChequeRefundCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentPaperRefundCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentMagcardRefundCreator( ));
    setHeaderVisible(false);
  }

  protected void setStatusPanel(boolean paramBoolean1, boolean paramBoolean2)
  {
    setAddEnabled((paramBoolean1) && (!paramBoolean2));
    setOKEnabled(paramBoolean2);
  }

  protected PaymentInfo getDefaultPayment(double paramDouble)
  {
    return new PaymentInfoTicket(paramDouble, "cashrefund");
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.payment.JPaymentSelectRefund
 * JD-Core Version:    0.6.0
 */